package com.hungry.hfw.dao;

import javax.sql.DataSource;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.jdbc.core.JdbcTemplate;

public class CustomJdbcTemplate extends JdbcTemplate implements InitializingBean{
	private DataSource nammudeDataSource;

	public DataSource getNammudeDataSource() {
		return nammudeDataSource;
	}

	public void setNammudeDataSource(DataSource nammudeDataSource) {
		setDataSource(nammudeDataSource);
		System.out.println("template - datasource = " + getDataSource());
	}


}
